package com.zhuhjay.service.system.model.dto;

import com.zhuhjay.common.web.annotation.Matching;
import com.zhuhjay.common.web.enums.MatchingMode;
import lombok.Data;

import javax.validation.constraints.Min;
import java.util.List;

/**
 * @author ZhuHJay
 * @date 2023/6/22 9:51
 */
@Data
public class RoleDto {

    @Matching(MatchingMode.AuthorityName)
    private String roleName;
    @Matching(MatchingMode.AuthorityKey)
    private String roleKey;
    @Min(value = 1, message = "排序不能小于1")
    private Integer sort;
    /**
     * 角色绑定的菜单ids
     **/
    private List<Integer> menuIds;

}
